From 9893f4e8c2d9f6c4fdb5f4775403c413467da9ec Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 7 Mar 2018 19:36:50 +0000 Subject: [PATCH] common/sched: Fix ARM build following c/s 340edc3902 The OSSTest smoke tests reports: sched_credit2.c: In function 'csched2_alloc_domdata': sched_credit2.c:3015:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] return ERR_PTR(-ENOMEM); ^ sched_credit2.c:3015:9: error: nested extern declaration of 'ERR_PTR' [-Werror=nested-externs] As the ERR infrastructure is part of the main scheduler interface now, include it from xen/sched-if.h Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini Reviewed-by: Dario Faggioli Acked-by: George Dunlap --- xen/include/xen/sched-if.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h index 48952425fa..c5dd43ed9c 100644 --- a/xen/include/xen/sched-if.h +++ b/xen/include/xen/sched-if.h @@ -9,6 +9,7 @@ #define __XEN_SCHED_IF_H__ #include +#include /* A global pointer to the initial cpupool (POOL0). */ extern struct cpupool *cpupool0; -- 2.30.2